https://glot.io/snippets/gibxdyke0e/raw/main.lua